//
// Created by 文道江 on 16/1/13.
// Copyright (c) 2016 文道江. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>

@protocol PlayViewDelegate <NSObject>

@optional

- (void)pressDone:(NSURL *)url;

@end

@interface VideoPlayerViewController : UIViewController

@property (weak, nonatomic) id <PlayViewDelegate> payDelegate;

@property BOOL autoPlay;

@property (retain, nonatomic) NSURL *url;

- (instancetype)initWithUrl:(NSURL *)url;

+ (instancetype)controllerWithUrl:(NSURL *)url;


@end